﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="get_email_info_contact.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Letter.get_email_info_contact" %>

<%@ Import Namespace="DataAccess" %>
<%@ Import Namespace="System.Linq" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <% var email_id = Convert.ToInt32(Request.QueryString["email_id"]); %>
    <% var email_info_contact = new TblContactController().FetchAll().Single(x => x.Id == email_id); %>

    <div class="letter-detail-row w3-row" hidden="hidden">
        <label class="w3-col l4">ID: </label><div id="Email_ID" class="w3-col l8"><%= email_info_contact.Id %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Họ tên:</label><div class="w3-col l8"><%= email_info_contact.FullName %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Ngày sinh:</label><div class="w3-col l8"><% string birthday = email_info_contact.Birthday.Value.Day.ToString()+"/"+email_info_contact.Birthday.Value.Month.ToString()+"/"+email_info_contact.Birthday.Value.Year.ToString();%><%= birthday %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Giới tính:</label><div class="w3-col l8">
            <% if (email_info_contact.Sex == true){ %>Nam<% }else{%>Nữ<%} %>
        </div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Email:</label><div id="Client_Email" class="w3-col l8"><%= email_info_contact.Email %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">SĐT:</label><div class="w3-col l8"><%= email_info_contact.Phone %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Địa chỉ:</label><div class="w3-col l8"><%= email_info_contact.Address %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Nghề nghiệp:</label><div class="w3-col l8"><%= email_info_contact.Job %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Bạn biết chúng tôi qua:</label><div class="w3-col l8"><%= email_info_contact.Traditional %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Mục đích học:</label><div class="w3-col l8"><%= email_info_contact.Purpose %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Trình độ muốn đăng ký:</label><div class="w3-col l8"><%= email_info_contact.Degree %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Lớp muốn đăng ký:</label><div class="w3-col l8"><%= email_info_contact.ClassX %></div>
    </div>
    <div class="letter-detail-row w3-row">
        <label class="w3-col l4">Yêu cầu:</label><div class="w3-col l8"><%= email_info_contact.Request %></div>
    </div>
    <% new TblContactController().Update(email_info_contact.Id,email_info_contact.FullName,email_info_contact.Birthday,email_info_contact.Sex,email_info_contact.Email, email_info_contact.Phone, email_info_contact.Address,email_info_contact.Job,email_info_contact.Traditional,email_info_contact.Purpose,email_info_contact.Degree,email_info_contact.ClassX,email_info_contact.Request,true,email_info_contact.DateX,email_info_contact.Sended); %>
</body>
</html>
